<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="<?php echo base_url() ?>css/reset.css" type="text/css" rel="stylesheet" media="screen" />
        <link href="<?php echo base_url() ?>css/style.css" type="text/css" rel="stylesheet" media="screen" />
        <title>fashion woman</title>
    </head>
    <body>
        <div id="main_box">
            <h1>Chức năng quản lý sản phẩm</h1>
            <div class="cleared">
<?php     

echo form_open(current_url()); ?>
<?php echo $custom_error; ?>
<?php echo form_hidden('sanpham_sukien_id',$result->sanpham_sukien_id) ?>

                                    <p><label for="masukien">Masukien<span class="required">*</span></label>                                
                                    <!--<input id="masukien" type="text" name="masukien" value="<?php echo $result->masukien ?>"  />-->
                                    <select name="masukien">
                                        <?php foreach($sukien as $sukien) {?>
                                            <option value="<?php echo $sukien -> masukien?>" <?php echo ($sukien -> masukien==$result->masukien)? "selected=selected" : "" ?>><?php echo $sukien -> tensukien?></option>
                                        <?php }?>
                                      </select>
                                    <?php echo form_error('masukien','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="sanpham_id">Sanpham_id<span class="required">*</span></label>                                
                                    <!--<input id="sanpham_id" type="text" name="sanpham_id" value="<?php echo $result->sanpham_id ?>"  />-->
                                      
                                        <select name="sanpham_id">
                                        <?php foreach($sanpham as $sanpham) {?>
                                            <option value="<?php echo $sanpham -> id?>" <?php echo ($sanpham -> id==$result->sanpham_id)?"selected=selected":""?>><?php echo $sanpham -> ten_sp?></option>
                                        <?php }?>
                                      </select>
                                        <?php echo form_error('sanpham_id','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="giam_gia">Giam_gia<span class="required">*</span></label>                                
                                    <input id="giam_gia" type="text" name="giam_gia" value="<?php echo $result->giam_gia ?>"  />
                                    <?php echo form_error('giam_gia','<div>','</div>'); ?>
                                    </p>
                                    
<p>
        <?php echo form_submit( 'submit', 'Submit'); ?>
</p>

<?php echo form_close(); ?>
            </div>
        </div>
    </body>
</html>